<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2008 XBRL International. All Rights Reserved. -->
<?xml-stylesheet type="text/xsl" href="../stylesheets/conformanceFunction.xsl"?>
<testcase
  xmlns="http://xbrl.org/2008/conformance"
  xmlns:reg="http://xbrl.org/2008/registry"
  xmlns:fcn="http://xbrl.org/2008/function"
  xmlns:cfcn="http://xbrl.org/2008/conformance/function"
  xmlns:xbrli="http://www.xbrl.org/2003/instance"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xfi="http://www.xbrl.org/2008/function/instance"
  xmlns:xfie="http://www.xbrl.org/2008/function/instance/error"
  xmlns:xqt-err="http://www.w3.org/2005/xqt-errors"
  xmlns:concept="http://xbrl.org/formula/conformance/example" 
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:schemaLocation="
  http://xbrl.org/2008/registry ../schemas/registry.xsd
  http://xbrl.org/2008/function ../schemas/function.xsd
  http://xbrl.org/2008/conformance ../schemas/conformance.xsd
  http://xbrl.org/2008/conformance/function ../schemas/conformanceFunction.xsd
  ">
  <owners>
    <reg:owner id="geoff">
      <reg:name>Geoff Shuetrim</reg:name>
      <reg:affiliation>Galexy</reg:affiliation>
      <reg:email>geoff@galexy.net</reg:email>
     <reg:assumedOwnership moment="2008-01-30T00:00:00" />
    </reg:owner>
  </owners>

  <number>90202</number>

  <name>All tests</name>

  <documentation>
    <xhtml:p>
      This is only a template.  It needs to be updated.
    </xhtml:p>
    <xhtml:p>
      Tests still to be done:
    </xhtml:p>
    <xhtml:ul>
      <xhtml:li>Errors thrown when using invalid input arguments.</xhtml:li>
    </xhtml:ul>
  </documentation>

  <variation id="V-01">
    <name>Works for an instant concept.</name>
    <documentation>
      <xhtml:p>
        Tests that the function works for an instant concept.
      </xhtml:p>
     </documentation>
    <inputs>
      <schema xlink:type="simple" xlink:href="period-type.xsd"/>
      <instance readMeFirst="true" id="V01" xlink:type="simple" xlink:href="instance.xml"/>
      <cfcn:call file="V01">
        xfi:concept-period-type(node-name(/xbrli:xbrl/concept:c1[@contextRef='context-instant'][1]))
      </cfcn:call>
    </inputs>
    <outputs>
      <cfcn:test>
         count( $result ) eq 1
			and
         $result eq 'instant'
      </cfcn:test>
    </outputs>
  </variation>

  <variation id="V-02">
    <name>Works for an instant concept.</name>
    <documentation>
      <xhtml:p>
        Tests that the function works for an duration concept.
      </xhtml:p>
     </documentation>
    <inputs>
      <schema xlink:type="simple" xlink:href="period-type.xsd"/>
      <instance readMeFirst="true" id="V02" xlink:type="simple" xlink:href="instance.xml"/>
      <cfcn:call file="V02">
        xfi:concept-period-type(node-name(/xbrli:xbrl/concept:c2[@contextRef='context-forever'][1]))
      </cfcn:call>
    </inputs>
    <outputs>
      <cfcn:test>
         count( $result ) eq 1
			and
         $result eq 'duration'
      </cfcn:test>
    </outputs>
  </variation>

  <revisions>
    <reg:revision on="2008-02-04T14:30:00" by="geoff">
      <xhtml:p>
        Created the test case.
      </xhtml:p>
    </reg:revision>
  </revisions>

</testcase>
